
ac.skill('暗影魔球'){
    temp = '攻击触发',
    odds = 15,
    model1 = [[4ef2c590f0ac05a1.mdl]],
    on_init = function(self,hero)
        self:gc(hero:event '单位-攻击命中'(function(_,target)
            if math.random(100)<=5 then
                self:set_cd(self:get_cd() - 0.5)
            end
        end))
    end,
    on_run = function(self,hero,target)
        local num = 7
        local group = ac.selector('unit'):range(hero,hero:get('攻击距离')+500):enemy(hero):get(num)
        local damage = self:dmg_get()
        local lock = {}
        for _,unit in ipairs(group) do
            local mover = hero:bezier_missile(unit,{135 + math.random(30),500,300},self.model1,1800,function()
                hero:aoe_damage(unit,150,damage,self,lock)
            end)
        end
    end,
}